ratio test for convergence and divergence